STEP 12: Let's try adding some actions inside the loop like we practiced!

  • Change the integer in .move_forward() from 50 to the variable move.
  • Drag Turn Left from and drop it at the bottom of your for loop, INSIDE the loop.
  • Change the integer in .turn_left() from 90 to the variable angle.
  • Click Run and watch the robot draw a star!

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)